//
//  EDocWebViewController.m
//  chanlin
//
//  Created by Ryan on 15-2-12.
//  Copyright (c) 2015年 chanlin. All rights reserved.
//

#import "EDocWebViewController.h"

@interface EDocWebViewController ()

@end

@implementation EDocWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)createNavigation{
    self.tool=[self showToolbarWithType:IFActive_ButtomToolBarButtonTypeShare|IFActive_ButtomToolBarButtonTypeCollect];
    __weak typeof(self) me=self;
    
    [self.tool handleTap:IFActive_ButtomToolBarButtonTypeShare block:^(id sender) {
        
        NSMutableDictionary *dic=[NSMutableDictionary dictionary];
        [dic sgrSetObject:[UIImage imageNamed:@"icon114.png"] forKey:@"icon"];
        
      //  [dic sgrSetObject:me.document.entity.title forKey:@"title"];
        
        
        [dic sgrSetObject:me.url  forKey:@"url"];
        [me openShare:dic];
    }];
    
    __weak IFToolBarViewController *t=self.tool;
//    [self.tool addListnerFont:^(int index){
//        [t activeFontSize:index];
//        [INHtmlElementUtil sharedInstance].level=index+1;
//        [me changeFontSize];
//    }];
    self.tool.collectId=self.itemId;
}

@end
